import request from "@/utils/request";

// 查询机器人列表
export function API_robotList(query) {
  return request({
    url: "/robotManage/list",
    method: "get",
    params: query,
  });
}

// 新增机器人
export function API_addRobot(data) {
  return request({
    url: "/robotManage/add",
    method: "post",
    data: data,
  });
}
// 编辑机器人
export function API_editRobot(data) {
  return request({
    url: "/robotManage/edit",
    method: "post",
    data: data,
  });
}
// 查询id查询机器人信息
export function API_getRobotInfo(id) {
  return request({
    url: "/robotManage/info.get/" + id,
    method: "get",
  });
}
//删除机器人
export function API_resourceDel(robotIds) {
  return request({
    url: "/robotManage/remove/" + robotIds,
    method: "delete",
  });
}
